all:client server
client:protobuf_client.cpp ../include/muduo/proto/codec.cc request.pb.cc
	g++ -std=c++11 $^ -o $@ -I../include -L../lib -lmuduo_net -lmuduo_base -pthread -lz -lprotobuf

server:protobuf_server.cpp ../include/muduo/proto/codec.cc request.pb.cc
	g++ -std=c++11 $^ -o $@ -I../include -L../lib -lmuduo_net -lmuduo_base -pthread -lz -lprotobuf

.PHONY:clean
clean:
	rm -f server client